<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>修改信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>修改信息</small>
                </h1>
            </div>
        </div>
    </div>


<!--    这里的提交是提交的一个object数据，把页面所有的信息都提交走，这样的话便于后端处理-->
    <form action="/updateBook2" method="post" th:object="${demo}">
        <input type="hidden" name="bookID" th:value="${book.getBookID()}"/>
        书籍名称：<input type="text" name="bookName" th:value="${book.getBookName()}"/>
        书籍数量：<input type="text" name="bookCounts" th:value="${book.getBookCounts()}"/>
        书籍详情：<input type="text" name="detail" th:value="${book.getDetail()}"/>
        <input type="submit" value="提交">
    </form>

</div>